package zy.wq.security;

import java.io.Serializable;
import java.security.Principal;

import zy.wq.security.bean.SystemUser;


public class SystemUserPrincipal implements Principal,Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 7700388150776806083L;
	
	private SystemUser user;
	
	public SystemUserPrincipal(SystemUser user) {
		this.user = user;
	}
	@Override
	public String getName() {
		return user.getName();
	}
	public SystemUser getUser() {
		return user;
	}
	

}
